package pers.cocoadel.cloud.movie.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pers.cocoadel.cloud.movie.domain.User;

@Service
@FeignClient(name = "user-service")
public interface UserClient
{
    @GetMapping("/users/{id}")
    User findById(@PathVariable("id") Long id);
}
